package com.ac.app.web.form;

import java.util.ArrayList;
import java.util.List;

import com.ac.app.dm.PickBase;
import com.ac.app.dm.PickEntry;
import com.ac.app.dm.PickRecord;
import com.ac.app.web.view.PkRecordView;
import com.caac.core.util.ListMapClass;
import com.caac.core.web.form.BaseSearchForm;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright AgileCentury 2008</p>
 * <p>Company: AgileCentury </p>
 * @author <a href="mailto:ac@agilecentury.com">Agile</a>
 * @version 1.0
 */

public class SearchForm extends BaseSearchForm {
    private String keyword;
    private List prList = new ArrayList();;
    private List prCurList = new ArrayList();;
    private String valDays = "3";
    private PickBase pbDm;
    private String meta = "99";
    private ListMapClass entrys = new ListMapClass();

    public PickBase getPbDm() {
        return pbDm;
    }

    public void setPbDm(PickBase pbDm) {
        this.pbDm = pbDm;
    }

    public SearchForm() {
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public List getPrList() {
        return prList;
    }

    public void setPrList(List prList) {
        this.prList = prList;
    }

    public String getValDays() {
        return valDays;
    }

    public void setValDays(String valDays) {
        this.valDays = valDays;
    }

    public ListMapClass getEntrys() {
        return entrys;
    }

    public void setEntrys(ListMapClass entrys) {
        this.entrys = entrys;
    }

    public void addEntry(PickEntry pe) {
        entrys.addChild(pe.getId(), pe);
    }

    public void addPrCur(PkRecordView pr) {
        prCurList.add(pr);
    }

    public void addPr(PickRecord pr) {
        prList.add(pr);
    }

    public List getPrCurList() {
        return prCurList;
    }

    public void setPrCurList(List prCurList) {
        this.prCurList = prCurList;
    }

    public String getMeta() {
        return meta;
    }

    public void setMeta(String meta) {
        this.meta = meta;
    }
}
